/**
 * Created by json.lu on 2016/1/21.
 */

var mongoose=require('mongoose');
var config=require('./config');
module.exports=function(){
    var db=mongoose.connect(config.mongodb);
    return db;
}
